package com.lee.bemorebetter.degin.principle;

import java.util.List;
import java.util.Map;

/**
 * @author ：liylw
 * @date ：Created in 2021/3/25 15:34
 */
public interface MetricsStorage {
    void saveRequestInfo(RequestInfo requestInfo);

    List<RequestInfo> getRequestInfos(String apiName,long startTimeInMillis,long endTimeInMillis);

    Map<String,List<RequestInfo>> getRequestInfos(long startTimeInMills,long endTimeInMillis);
}
